home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Unreal Tournament Game Programming for Teens
/
UnrealTournamentGameProgrammingForTeens.iso
/
Chapter Files
/
Chapter06
/
LocalResults.txt
< prev
next >
Wrap
Text File
|
2006-10-13
|
386b
|
18 lines
public function float Multiply(float NumA, float Numb){
//Defined locally in one place
local float Result;
Result = NumA * NumB;
return Result;
}
public function float DivideAbyB(float NumA, float Numb){
//Defined locally in another place
local float Result;
Result = 0;
if(NumA != 0){
Result = NumA/NumB;
}
return Result;
}